package com.one.bean;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 活动添加,管理
 * </p>
 *
 * @author zzh
 * @since 2022-01-21
 */
@ApiModel(value = "Management", description = "活动添加,管理")
@Data
public class Management implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("活动名称")
    private String activityName;

    @ApiModelProperty("活动开始时间")
//    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date starterTime;

    @ApiModelProperty("活动结束时间")
//    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss" )
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("0未开始，1进行中，2已结束")
    private Integer activeState;


}
